package com.gtlab1207.br_awareness.models.dao;

import com.gtlab1207.br_awareness.models.domain.SecurityEvent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TotalEventDao {

    public int addSecurityEvent(SecurityEvent record);

    public int deleteSecurityEventByIp(@Param("ip") String ip);
    public int deleteAll();

    public int updateSecurityEventByIp(SecurityEvent record);

    public List<SecurityEvent> selectAll();

    public List<SecurityEvent> selectListByState(Integer state);

    public List<SecurityEvent> selectSecurityEventByCondition(SecurityEvent condition);

    public SecurityEvent selectSecurityEventByIp(String ip);


    public int deleteEventByState(Integer state);
}
